﻿using System;
using System.Runtime.Serialization;
using System.Xml;
using Gean;
using Gean.Attributes;
using Gean.Interface;
using Gean.Wrapper;
using Pansoft.Authority.Entities;
using Pansoft.HIME.Base.Wrapper;

namespace Pansoft.HIME.Base.Entities
{
    /// <summary>柜员实体类
    /// </summary>
    public class Staff : StaffBase
    {
        public Staff()
        {
            Ranges = new WorkRangeCollection(0);
        }

        public string Password { get; set; }

        public PersonSex Sex { get; set; }

        /// <summary>对应的多个工作时间段
        /// </summary>
        /// <value>
        /// The ranges.
        /// </value>
        public WorkRangeCollection Ranges { get; set; }

        public DateTime LoginDateTime { get; set; }

        public int LoginCounterId { get; set; }

        public bool IsLogin { get; set; }

        public override string ToString()
        {
            return string.Format("{0} - {1}", Id, Name);
        }
    }
}
